package com.xmu.prcs.dao;

import java.util.List;

import com.xmu.prcs.entity.Reply;

/**
 * 
 * @author frequent
 * @version 1.0,2010-3-20
 *
 */
public interface ReplyDao extends GenericDao<Reply>{

	public final String ID_REPLY = "idReply";
	public final String CONTENT = "content";
	public final String REPLY_TIME = "replyTime";
	public final String REPLY_TO = "replyTo";
	
	/**
	 * 统计某个帖子下的回复数
	 * @param postId
	 * @return
	 */
	public int countReply(int postId);
	
	public List<Reply> get4Page(int postId, int begin , int size);
}
